home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / shell / axsh_1_3_demo.lha / AXshAdmManual next >
Text File  |  1993-03-17  |  82KB  |  2,253 lines

  1. *****************************************************************************
  2.     .      .               .         ___                           .  _ 
  3.    /|\ / _ |_     _     _ -+- _ . .   |         _ ._  _ . _ ._    /| ' )
  4.   /-| X (_`| |   (_`| |(_` | |_)|V|   |     \ /|_)| `(_`|/ \| |    |  < 
  5.  /  |/ \._)| |   ._)|_|._) |_|_,|||  _|_     V |_,|  ._)|\_/| |    |o._)
  6.                     ._|
  7.                                        15-Mar-93  © Digital Design 1991-1993
  8. *****************************************************************************
  9.  
  10.  
  11.         S y s t e m   a d m i n i s t r a t o r ' s
  12.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13.         r e f e r e n c e   m a n u a l
  14.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15.  
  16. 1.0 Getting started
  17.  
  18.     1.1    Installing AXsh system
  19.     1.2    Using AXsh with other software
  20.     1.3    Adding and removing users
  21.     1.4    Security
  22.     1.5    Helping users
  23.     1.6    Manuals
  24.     1.7    Installing new software
  25.     1.8    Administrator's daily duties
  26.     1.9    Short introduction to the programs
  27.     1.10    Problems and answers, tips and tricks
  28.  
  29. 2.0 Configuring and customizing AXsh
  30.  
  31.     2.1    /etc/rc
  32.     2.2    /etc/rc.server
  33.     2.3    /etc/rc.ffe
  34.     2.4    /etc/rc.news
  35.     2.5    /etc/rc.mail
  36.     2.6    /etc/crontab
  37.     2.7    /etc/issue and /etc/motd
  38.     2.8    /etc/forbiddenvars
  39.     2.9    /etc/globallogin
  40.     2.10    /etc/nologin
  41.     2.11    /etc/adm/ directory
  42.     2.12    /etc/xprotos.tab
  43.     2.13    /etc/Questionnaire
  44.     2.14    /etc/adm/Answers
  45.     2.15    /etc/exampleuser/ directory
  46.     2.16    /etc/register.*
  47.  
  48. 3.0 Networking under AXsh
  49.  
  50.     3.1    Network installation
  51.     3.2    Creating a node
  52.     3.3    Creating a new network
  53.     3.4    Connecting to Internet
  54.     3.5    UUCP
  55.     3.6    AXnet mail
  56.     3.7    AXnet news
  57.  
  58. 4.0 Registering stuff
  59.  
  60.     4.1    Registering form
  61.     4.2    Bug report form
  62.     4.3    New application report form
  63.     4.4    Author
  64.     4.5    Copyright notices
  65.  
  66.  
  67. *****************************************************************************
  68. 1.0 Getting started
  69.  
  70. AXsh is a shell based local communication software, which allows remote users
  71. to connect to your machine.  AXsh can also be run under UUCP, but you need to
  72. do some changes to some of the configuration files.  AXsh consists of three
  73. main parts:  the AXsh shell software, AX-sysghost, which holds information
  74. about users and AX-server, which takes incoming calls, starts AXsh etc.  AXsh
  75. supports multiple users, multiple lines and different user levels.  You can
  76. define allowed commands and directories for each user level.  Command
  77. arguments can also be restricted to home directory or to allowed directories.
  78.  
  79. AXsh is a SHAREWARE product and the REGISTRATION fee is about US$ 30, 150
  80. FIM.  We'll accept any other currency too, because that is more convinient
  81. for everybody, but US$ and FIM are preferred.  The cheapest way to send the
  82. money is in cash in a letter.  If you don't plan to register, but have an
  83. Internet mail address, you should still send some mail so I can keep you upto
  84. date about updates to the demo distribution.  We are developing the system
  85. constantly and all comments and bug reports are welcomed.  (See the addresses
  86. in the end of this document.)
  87.  
  88. Before you start to install, you should check that your system is cabable of
  89. running AXsh.  Here is a list of things you should have:
  90.  
  91.     - Amiga 500/600/1000/2000/2500/3000/3000T/4000
  92.     - at least 0.5 MB of memory (>1M recommended)
  93.     - at least 5 MB of hard disk space for AXsh in a public system
  94.     - Hayes standard modem connected to Amiga via RS-232
  95.  
  96. You also need:
  97.  
  98.     - KS2.0 OR arp.library v39 or newer
  99.  
  100. IMPORTANT! 1.3 will be the last 1.3-compatible version. Next version will
  101.        REQUIRE ks2.0 or later.
  102.  
  103. To use network or file transfer:
  104.  
  105.     - xprzmodem.library 2.52 or newer
  106.     - any other xprotocol library
  107.  
  108. The disk space usage can be controlled by yourself.  If you don't have 5 megs
  109. of disk space for AXsh, don't take Internet news or hundreds of users.
  110. Frankly, it's up to you.  Kickstart 2.0 is recommended, but not currently
  111. needed.
  112.  
  113. If you need to know about AXsh shell itself or about other programs, just
  114. read the appropriate man-files. This document discusses only the installation
  115. and configuration-related topics.
  116.  
  117. This section is kind of abstract stuff, so if you're familiar with AmigaDOS
  118. and know how to unpack AXsh to the installation diskette and how to use
  119. WorkBench, skip this first section and concentrate on the second part of this
  120. manual.
  121.  
  122. In this manual some of the paths are defined this way:  /etc/adm/ .  "/"
  123. means root directory, in this case the AXsh:  assign.  /etc/adm means
  124. AXsh:etc/adm.  In AXsh they both work just fine.
  125.  
  126.  
  127. *****************************************************************************
  128. 1.1 Installing AXsh system
  129.  
  130. For automatic installation you need a formatted disk.  You should use a FFS
  131. format floppy, otherwise everything wont fit into the disk.  You cannot use a
  132. harddisk partition, it has to be a floppy!  If you don't have possibilities
  133. to use an FFS format disk or you want to use a seperate partition for AXsh,
  134. you can install the system by hand.
  135.  
  136.     format drive df0: name AXshPack NOICONS FFS
  137.  
  138. When you have a disk ready, unpack the AXsh packet to it:
  139.  
  140.     lha x InstallDisk df0:
  141.  
  142. You can do the above also automatically with the MakeInstallDisk ICONX script.
  143. Now you can just double click the disk icon and select an appropriate install
  144. script for your system.  The installer will ask you to select the right
  145. drawer and files to install.
  146.  
  147.  
  148. *****************************************************************************
  149. 1.1.2 Installing by hand
  150.  
  151. Create a new directory or a partition for AXsh and make an assign to point to
  152. that directory:
  153.  
  154.     assign AXsh: <AXsh directory>
  155.     e.g. : assign AXsh: DH0:Communications/AXsh/
  156.  
  157. If you prefer a partition for AXsh, it's reasonable to label it `AXsh':
  158.  
  159.     relabel <partition name> AXsh
  160.     e.g. :  relabel DH4: AXsh
  161.  
  162. And now when you write the following command line:
  163.  
  164.     cd AXsh:
  165.  
  166. ..you should be in your local AXsh directory.  If any system requesters
  167. appear, you've done something wrong above. At this point, unpack the packet
  168. to the directory/disk:
  169.  
  170.     lha x InstallDisk AXsh:
  171.  
  172. This will take a while to be executed.  It unpacks the AXsh packet to your
  173. (hopefully) hard disk.  After the shell prompt appears again, you should have
  174. all files unpacked. You should consult chapter 2.0 for customizing configuration
  175. files to fully use AXsh cababilities.  Now, try this from any CLI or shell:
  176.  
  177.     path AXsh:bin/
  178.     AXsh -con
  179.  
  180. AXsh version string and login prompt should appear.  Give login name root and
  181. password root.  Now you should notice if you have succeeded in the
  182. installation process.  Use "exit" to terminate an AXsh session.  You can get
  183. more information about the AXsh shell itself from its own manual :
  184. /man/AXsh.man.
  185.  
  186.  
  187. If you want to use AXsh remotely, you have to make AXAUX: available:
  188.  
  189.     mount AXAUX: from AXsh:etc/Mountlist.AXsh
  190.  
  191. Now AXAUX:  handler is added to the system and it is ready to handle the
  192. builtin serial line.  If you want to use a different serial device, refer to
  193. section 2.2 about /etc/rc.server and the manual pages for ax-server and
  194. axaux-handler. You can now start the AX-server with "AX-server".
  195.  
  196. If you do not start AX-sysghost, the first AXsh run will start it
  197. automatically.  Next thing to do is to make the mounting procedure automatic.
  198. If you're running AmigaOS 2.0 or higher, do the following:
  199.  
  200.  
  201. AmigaOS 2.0 installation:
  202.  
  203. Edit s:user-startup using your favourite text editor and write:
  204.  
  205.     assign AXsh: <AXsh directory>
  206.     mount AXAUX: from AXsh:etc/Mountlist.AXsh
  207.  
  208. After that, save the user-startup and open the AXsh installation diskette's
  209. Storage directory from Workbench.  You'll see icons with an A on the top left
  210. corner.  Move these icons to your boot disc's WBStartup directory.  Now, when
  211. system opens Workbench, it automatically launches these programs.  If you're
  212. not using Workbench, follow the AmigaOS 1.3 installation steps, but edit
  213. s:user-startup instead of s:startup-sequence.
  214.  
  215.  
  216. AmigaOS 2.1 installation:
  217.  
  218. In addition to the AmigaOS 2.0 installation steps move the AXAUX handler from
  219. the AXsh installation diskette's Storage/DOSDrivers directory to the system
  220. Devs/DOSDrivers directory and leave out the mount command from the
  221. user-startup. You should also copy the locale system files to the Locale:
  222. directory as well as the catalog files, if you want to use other languages
  223. than the default English.
  224.  
  225.     copy AXsh:storage/Locale/catalogs locale:catalogs all
  226.  
  227. Currently AXsh (the shell itself), Mail and Ami (private mail programs),
  228. Rn (news reader) and FFE (file frontend) all support WB2.1 locale.library.
  229. Included languages are:
  230.  
  231. English   Default (Included in the programs)
  232. suomi      (Finnish)    by Pasi Ojala        po87553@cs.tut.fi
  233. français  (French)    by Cedric Beust        Cedric.Beust@sophia.inria.fr
  234. dansk      (Danish)    by Soeren Berg Hansen    siera@imada.ou.dk
  235. español      (Spanish)    by Sebastian Delmont    sdelmont@dino.conicit.ve
  236. svenska      (Swedish)    by Morgan Ericsson    morgan@krynn.augs.se
  237.  
  238. Thousand thanks and happy and productive future to all translators. If you
  239. are willing to do translation to your own language, just contact me.
  240.  
  241.  
  242. AmigaOS 1.3 installation:
  243.  
  244. Edit s:startup-sequence using your favourite text editor and write before the
  245. endcli >nil:  command:
  246.  
  247.     assign AXsh: <AXsh directory>
  248.     execute AXsh:etc/Startupadd.AXsh
  249.  
  250. And that's it.  Save the modified startup-sequence and try booting the
  251. machine.  You may check the Startupadd.AXsh file to see what is done there.
  252.  
  253.  
  254. *****************************************************************************
  255. 1.2 Using AXsh with other software
  256.  
  257. AXsh can be used as a BBS software by itself, but it can also be used with
  258. other software packages. AXsh can be setup to run under DLG and other
  259. 'traditional' bulletin board systems that support the door-concept and
  260. you can use TrapDoor and UUCP Getty instead of AX-server, if you also handle
  261. Fidonet or UUCP traffic.
  262.  
  263. Here is an example of TrapDoor settings:
  264.     BBSmode Spawn
  265.     BBSCommand "execute AXsh:etc/remote-startup"
  266.     BBSInOut "AXAUX:serial.device/0/shared/speed%B"
  267.     Serialname serial.device
  268.     Serialunit 0
  269.     Baud 19200
  270.  
  271. We have also included instructions how to use AXsh under UUCP, but you have
  272. to go through all the configuration files and change them according to
  273. the instructions.
  274.  
  275.  
  276. *****************************************************************************
  277. 1.3 Adding and removing users
  278.  
  279. Administrator's most important task in administrating is keeping track of
  280. users.  In AXsh this part is made fairly easy.  Users can register themselves
  281. by giving a login name 'new' (this feature can be disabled if needed, see
  282. /etc/rc), which invokes a program called AXsh:bin/register.  It asks for the
  283. desired login name, user's real name, password and the administrator can ask
  284. them what ever he or she wants depending of the contents of
  285. AXsh:etc/questionnaire.  You can also edit the /etc/register.*-files to your
  286. preference or you can replace the register commands with a program that just
  287. takes the information about the new user and you create the account after
  288. verifying the user. Registering features and questionnaire file are explained
  289. more carefully in chapter 2.10.
  290.  
  291. The default register program creates new accounts automatically, so you don't
  292. have to do that either.  The only thing you must do is to check users'
  293. information. All the answers to the questions are collected into one file
  294. called AXsh:etc/adm/answers.  The filename can also be changed by modifying
  295. AXsh:etc/rc.
  296.  
  297. Users can also be added manually by using passwd. However, you should notice
  298. that passwd does NOT create home directories nor does it copy any default
  299. files, it simply adds the login name to the system. Because of this, it
  300. is adviced that you use register to add new users, even if you do that
  301. locally. On the other hand, using passwd directly is the only way to make
  302. two login names use the same home directory, if that kind of feature is
  303. needed.
  304.  
  305. Removing users needs some more effort.  You have to know the user's login
  306. name and you have to be logged in as a superuser.  Usually login name 'root'
  307. has this access level.  If you are using an AmigaShell, you can use the
  308. supplied 'login' command to set the superuser bit (login 32768).  When you
  309. decide to remove a user, you must be sure, that it is what you really want to
  310. do, because there is no way to get user's account back after removing it.
  311.  
  312.     passwd -r <user's login name>
  313.  
  314. This line removes user's account from AXsh:etc/passwd file.  This WILL NOT
  315. delete the user's home directory or any other files belonging to the user
  316. (like the system mailbox), so you have to do that yourself.  Depending
  317. on the configuration you go to system's home directory (usually AXsh:home/)
  318. and type the following line:
  319.  
  320.     delete <users login name> all quiet
  321.  
  322. Delete is a standard AmigaDOS command.  For further information consult your
  323. AmigaDOS user's manual.
  324.  
  325. With passwd you can also change user quotas and accesslevels. Passwd -l will
  326. list all users in /etc/passwd-file and passwd -ll will list available user
  327. level names. Passwd in also used to change real names and passwords (as the
  328. command name implies :-).
  329.  
  330.  
  331. *****************************************************************************
  332. 1.4 Security
  333.  
  334. Security is a top priority thing on an AXsh system.  It's up to you how much
  335. privileges you give to a user.  It's not very wise to give executing
  336. privileges to 'format' for access level 'normal'.  If you run a closed
  337. system with just few known users, it's not that important as long as you
  338. don't give executing privileges for intuition based programs.
  339.  
  340. You also control which directories the users have access to. However, if
  341. you give the user any of the superuser levels, he has access everywhere.
  342. Still, only the commands defined in the rc file can be used remotely.
  343.  
  344. In a public system it's very important to double check the users for whom
  345. you're giving higher privileges than 'normal'.  Any other user except 'root'
  346. should not have access level 'superuser'.  Normally it's not necessary to
  347. give a user special privileges.  'Normal' would do just fine.  You can add
  348. quota or unset it, if you've got enough storage space.  There are also other
  349. user levels, you can read about them in the configuration part.
  350.  
  351.  
  352. *****************************************************************************
  353. 1.5 Helping users
  354.  
  355. Because AXsh is not a traditional BBS software, there will be some problems,
  356. if you run a public system.  That's why it's essential to keep all the manual
  357. pages in sight.  /etc/motd file (message of the day) should contain
  358. information about how to get manual references and manual pages
  359. (man -k - and man <name>).
  360.  
  361. If you want to make the use of the system easier to your users, you can
  362. use the alias system to make menus and one-letter command aliases.
  363.  
  364. *****************************************************************************
  365. 1.6 Manuals
  366.  
  367. Manuals are AXsh's online help for a user.  They should ALWAYS be stored in
  368. AXsh:man/ directory.  As mentioned above, manual pages are read with the man
  369. command.  It is also possible to search for a manual entry with a reference
  370. key.  It might be for example the word 'user'.  When you write the command
  371.  
  372.     man -k user
  373.  
  374. man displays all the manual pages' reference lines which contain something
  375. about users.  Let's try it:
  376.  
  377.     man -k user
  378.  
  379. finger     -(AXsh) show user information
  380. irc     -(AXsh) multiuser chat utility: (Non-internet-relay chat)
  381. passwd     -(AXsh) manipulate userfile
  382. register-(AXsh) ask facts about the user and create an account
  383. who     -(Shell) show users currently on the system,terminals,times
  384. write     -(Shell) send a message to another user
  385.  
  386. OK.  Now we have the refernce lines on the screen.  If `write' is the needed
  387. command, just write:
  388.  
  389.     man write
  390.  
  391. and the manual page for write appears on the screen.  Online manuals work
  392. very much the same way as in Unix, but they are not separated in classes.
  393. All the manual pages are stored directly under AXsh:man/. Manual reference
  394. lines are stored in AXsh:man/Reference.
  395.  
  396. You might use a separate man program, if it checks and obeys BREAK-signals
  397. (ctrl-c sent by the user or the corresponding signal sent directly to the
  398. program). You also should have /checkcd defined in the AXAUX-filename.
  399.  
  400.  
  401. *****************************************************************************
  402. 1.7 Installing new software
  403.  
  404. AXsh is being updated all the time.  New versions of programs and whole new
  405. programs are released moderately often.  It's your job to install new
  406. software so that it works correctly.  In addition to this you should have
  407. some local news groups in which you inform local users about this new software
  408. or modification, so that they can benefit from it as well.  After you've
  409. tested the new software locally, you can add execute privileges for users.
  410.  
  411. Installing new version of an old program is not that complicated.  Just move
  412. the program in correct directory (usually AXsh:bin/) and check that
  413. everything works. See also if any modifications to the settings is needed.
  414.  
  415. If you have received a whole new release of AXsh, read carefully all the
  416. update files before installing.  You should also install AXsh into a new
  417. drawer or first copy the configuration files you have personalized or
  418. otherwise modified.  There may also be some programs to change the news
  419. subsystem or other parts of the system to a new format.  (Upgradenews
  420. converted version1.24 news system to 1.25 format.)
  421.  
  422.  
  423. *****************************************************************************
  424. 1.8 Administrator's daily duties
  425.  
  426. There are couple of things that administrators should perform daily.  If
  427. you're using cron (CyberCron, dcron), you can do these tasks automatically.
  428. First, you must move all the user log files away from AXsh:etc/adm/.
  429. They are named as follows:
  430.  
  431.     Log<date>-<time>-<tty>
  432.  
  433. AXsh stores what the user has written to these log files if -log option is
  434. given as a command line argument. It's recommended to use this option with a
  435. public system.  If something goes wrong, you can easily check what the user
  436. was doing when it happened.
  437.  
  438. If you're on a net, a file called AXsh:etc/adm/netlog will contain
  439. information whether a netcall succeeded or not.  By using the program
  440. /bin/userstat (and netstat, which is now obsolete) you can analyze this file.
  441. But if you have a lot of news groups, this log file may get very big in a
  442. very short time.  That's why you should make it shorter every now and then.
  443.  
  444. The third thing you have to do DAILY, if you're running a public system:
  445. Check the answer file AXsh:etc/adm/answers.  If there's Donald Ducks or other
  446. jokers, just kick them out.  It's too big security risk to let them be there.
  447. But don't worry, no one has ever overstepped his access level on a correctly
  448. installed AXsh system. Ever.
  449.  
  450. XPR saves information about downloads and uploads to the file /etc/adm/Xpr.log,
  451. so that you can see what files are most popular and what files are uploaded.
  452. Each line lists date, size of the file, cps-rate, user, protocol and
  453. filename.
  454.  
  455. And of course you have to read your mail and news.
  456.  
  457.  
  458. *****************************************************************************
  459. 1.9 Short introduction to the programs
  460.  
  461. This is a short introduction to the programs, so that you know which
  462. program does which. Most of the programs also have manual pages
  463. (possibly outdated though) and the programs also spit out usage lines when
  464. they are started without arguments or with -? or -h.
  465.  
  466.  
  467. AXsh
  468.     The shell. AXsh handles the login process, command line
  469.     editing, argument and command checking and execution. AXsh
  470.     also has its script language and variables. You can also
  471.     assign macros to functions keys and use the filename-completion
  472.     feature.
  473.  
  474.  
  475. System utilities:
  476.  
  477. AXAux-Handler
  478.     This handler does the communication with the serial port
  479.     and the programs. (If you have remote connection.)
  480.  
  481. ax-server
  482.     This server handles incoming calls, adjusts the baudrate if
  483.     needed and starts new process for remote login. The server
  484.     also handles net calls. You can also use Getty, if you need
  485.     to handle UUCP as well, or you can place AXsh under a 'normal'
  486.     BBS program as a 'door' program.
  487.  
  488.     AX-server will open a small window and will promptly show the
  489.     name of the configuration file it is using. After you activate the
  490.     window you can press the menu button on your mouse. The window
  491.     should expand to include two gadgets called "Console" and "Terminal".
  492.     If you press the Console-gadget, the server will start a new AXsh
  493.     session on console (this is controlled by the %newcon: entry in
  494.     /etc/rc.server).  If you press the Termina-gadget, the server will
  495.     release the serial device so that you can start a terminal program.
  496.     When you are done with the serial, press the gadget again and the
  497.     server will try to allocate the serial again.
  498.  
  499.     AX-server now also locks the serial port, so now you can use a
  500.     'lockserial' program or a terminal program that itself uses the
  501.     OwnDevUnit.library. In this case you don't have to use the terminal
  502.     gadget at all. OwnDevUnit.library must be found from libs:, otherwise
  503.     no locking is used. However, AX-server DOES NOT lock the serial
  504.     for the command. You could add a lockserial command to the
  505.     /etc/remote-startup file.
  506.  
  507. ax-sysghost
  508.     This program keeps track of the users and their variables.
  509.     It also keeps track of the system load. The sysghost should be
  510.     started on startup, but AXsh will try to start it itself if it's
  511.     not running.
  512.  
  513. killsysghost
  514.     If you need to get rid of the sysghost, this program sends
  515.     a quit-message to it. However, sysghost can't exit if there
  516.     are users logged in.
  517.  
  518.  
  519. AmigaDOS utilities:
  520.  
  521. uptime
  522. who
  523. login
  524.     These utilities may be used when using the AmigaDOS shell.
  525.     Uptime and who works in the same way as the corresponding
  526.     AXsh internals, login may be used to set the UserID associated
  527.     with each process. (See also top)
  528.  
  529.  
  530. Mail system:
  531.  
  532. ami
  533. mail
  534. mailserver
  535.     Ami and mail are used when reading and sending private mail.
  536.     Mailserver is used to distribute mail received from other
  537.     systems. AXsh mail uses To:-line when delivering mail, so
  538.     it has to generate a new message for each Cc:, and Bcc: is
  539.     quite hard to implement.
  540.  
  541.     However, you can also configure the mail system so that you can
  542.     use UUCP-mail or other mail systems.
  543.  
  544.  
  545. News system:
  546.  
  547. rn
  548.     Rn contains the whole news system. With rn you both read news
  549.     and handle all the news administration tasks. You can also
  550.     configure the news system, so that you can use UUCP-news or
  551.     CNews systems.
  552. nntpnews
  553.     Nntpnews is a simple program which uses NNTP to import news
  554.     from Internet (exporting is not implemented). This program
  555.     is available on seperate request.
  556.  
  557.  
  558. AXsh networking:
  559.  
  560. net
  561.     This program uses xprzmodem.library to transfer news and
  562.     mail packets between two AXsh systems. It also needs
  563.     rn, mailserver and C:LhA.
  564.  
  565.     You can also use Fidonet transport mechanism (with TrapDoor)
  566.     to exchange the packets. There will be AREXX script files
  567.     in this package that handle this.
  568.  
  569.  
  570. File system:
  571.  
  572. XPR
  573.     XPR handles file transfer. Both upload and download is
  574.     available and different protocols and settings can be
  575.     easily added. XPR can use any xprotocol-library. The
  576.     package includes several settings for zmodem,ymodem and
  577.     xmodem transfers.
  578. FFE
  579.     FFE is the file front end. It is a 'graphical' user interface,
  580.     quite like DirWork and Directory opus. You can move in
  581.     the filesystem, read filenotes (file filenotes or seperate
  582.     description files), see text file contents or packet
  583.     (lha and lzh) contents and transfer files with XPR or just
  584.     move them to the home directory where they can be further
  585.     processed (like only download one file from the packet).
  586.  
  587.  
  588. User accounts:
  589.  
  590. passwd
  591.     With passwd you can change password, user name, quota,
  592.     accesslevel and add or remove users, list all users or
  593.     'finger' a user.
  594. register
  595.     Register takes the user's name and other data and creates
  596.     a new account and a home directory and the default files
  597.     automatically.
  598.  
  599.  
  600. Information and statistics:
  601.  
  602. calendar
  603. mach
  604.     Calendar displays the calendar page for current month and
  605.     mach determines which processor and co-processors you have.
  606. netstat
  607.     Displays statistics of the received news articles.
  608.     Now obsolete, use userstat instead.
  609. top
  610.     Shows processes and tasks running in the system, their
  611.     names, states, stacks, priorities, CLI numbers and owners.
  612.     You can also hide libraries, devices and handlers from the
  613.     listing.
  614. userstat
  615.     Displays various statistics from various subjects. Includes
  616.     TOP 10 lists for users by calls and time, for downloads and
  617.     uploads by number of times and bytes, and for net activity.
  618.     Also displays most popular files and graphical representation
  619.     of the system utilization. Long display format displays
  620.     everything, normally only first 10 entries are displayed.
  621.  
  622.  
  623. File handling utilities:
  624.  
  625. cat
  626.     Spits files to the standard output.
  627. more
  628.     Shows files with a pager. Doesn't handle input from standard
  629.     input though.
  630. wc
  631.     Word counter. Counts chars, words and lines in files.
  632.  
  633.  
  634. Nice utilities:
  635.  
  636. Italics
  637. banner
  638. bigtext
  639.     These programs use ASCII graphics to display text in
  640.     bigger font. Banner uses a five-row-high font, bigtext
  641.     and italics use a three-line-high font.
  642. du
  643.     Shows disk usage.
  644. editor
  645.     AXsh's full-screen editor. Does not work very well, but
  646.     is better than nothing. Put "set term vt100" into your .login
  647.     if you have adequate terminal emulation.
  648. ls
  649.     A directory lister which also shows group and world protection
  650.     bits. Does not handle wildcards.
  651. cc
  652.     Consolechat utility. cc opens a window into the WB screen
  653.     and so the user can talk with the system administrator.
  654.     CC is a lot like U*ix talk.
  655. man
  656.     Displays manual pages or searches for references.
  657.  
  658.  
  659. *****************************************************************************
  660. 1.10 Problems and answers, tips and tricks
  661.  
  662. Problem:
  663.     I have a problem with users logging in via a modem.  When the modem
  664.     answers the phone it send a carrier and then after 2 or 3 seconds
  665.     hangs up.  I have a SupraFaxModem 14,400 running with an Amiga
  666.     2000HD.
  667. Reason:
  668.     This must be the 'CD never gets up after DTR goes down'-bug..  In
  669.     SupraFaxModem the Carrier Detect line drops when DTR line goes
  670.     inactive, but it never comes up again even if DTR goes active again.
  671.     This is why the computer thinks that the carrier has dropped and
  672.     hangs up.
  673. Solution:
  674.     Increase the DTR delay register, add s25=255.
  675.     You can also use Getty (UUCP 1.16D) to take the incoming calls.
  676.     Getty does not release the serial, so DTR never drops.
  677.     You should also have the modem ignore DTR, &d0.
  678.  
  679.  
  680. Problem:
  681.     I have a ZyXEL U1496E. When I set the serial speed to 38400 the
  682.     program does not work correctly. The highst possible speed is
  683.     19200.
  684. Reason:
  685.     AXAUX normally gets the serial speed from the preferences and
  686.     possible speeds only include speeds upto 19200 bps.
  687. Solution:
  688.     Use 19200 or add /speed38400/ to the axaux-filename and use that
  689.     speed in %bpslock:
  690.  
  691.  
  692. Problem:
  693.     Editor thinks that it has more lines than it has.
  694. Reason:
  695.     Actually, your window is too narrow. Editor does not really read the
  696.     columns variable, but assumes that you have 80 columns.
  697. Solution:
  698.     Add a little overscan and make the window bigger. A window of 664x216
  699.     is the right size in ks2.0. In ks1.3 you have to get/use a new
  700.     preferences program.
  701.  
  702.  
  703. *****************************************************************************
  704. 2.0 Configuring and customizing AXsh
  705.  
  706. This section is reserved for the actual configuring and customizing.
  707. Getting AXsh out of the packet is not much.  In this section we give AXsh
  708. unique features in your system.  We'll modify all the /etc/rc files up to
  709. date and also make the system stylish and usable to you and your users.
  710.  
  711. Remember that the identifier names are case-sensitive, should be always in
  712. lowercase and the colon is part of the name. Rest of the line is ignored.
  713. The setting for that specific entry follows on the next line. All paths
  714. should end in a slash or a colon, for example AXsh: and AXsh:home/ are legal
  715. values.
  716.  
  717.  
  718. *****************************************************************************
  719. 2.1 /etc/rc
  720.  
  721. /etc/rc is the main configuration file in AXsh.  In that file you define what
  722. commands and directories the users are allowed to use.  You have to decide
  723. what commands every access level can run and the directories they can access.
  724.  
  725. Here's the rc file's structure:
  726. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  727.  
  728.     %home:    /* users' home directories */
  729.     AXsh:home/
  730.     %news:    /* news-system directory */
  731.     AXsh:usr/spool/news/
  732.     %mail:    /* system mailbox directory */
  733.     AXsh:usr/spool/mail/
  734.     %timezone:    /* timezone string, default GMT (max 9 chr) */
  735.     EET
  736.     %upload:    /* system upload directory */
  737.     AXsh:usr/spool/upload/
  738.     %exampleuser:    /* this dir is copied to a new home dir */
  739.     AXsh:etc/ExampleUser/
  740.     %priority:    /* AXsh priority */
  741.     0
  742.     %thismachine:    /* Hostname */
  743.     pasbox.hro.fi
  744.     %hub:    /* The machine we are supposed to call */
  745.     tap.tre.fi
  746.     %password:    /* Password for us in the hub */
  747.     secretpass
  748.     %organization:
  749.     Digital Disaster Design - Wanna fry some chips ?
  750.     %tempdir:    /* Temporary place for e.g. mail/news packets */
  751.     T:
  752.     %answers:    /* Answer file */
  753.     AXsh:etc/adm/answers
  754.     %newregister:    /* "no" will disable the "new"-loginname register feature */
  755.     yes
  756.     %defuserlevel:    /* user level for new users - default is "visitor" */
  757.     visitor
  758.     %defquota:    /* quota for new users - default is 50k */
  759.     50
  760.     
  761.     ; Permitted dirs. Only symbolic paths are necassasy
  762.     %dirs:
  763.     $daemon:
  764.     $system:
  765.     $wizard:
  766.     $superuser:
  767.     $assistant:
  768.     $privileged:
  769.     $trusted:
  770.     $friend:
  771.     work:
  772.     $qualified:
  773.     $normal:
  774.     $guest:
  775.     $visitor:
  776.     C:
  777.     dh0:
  778.     dh0:System/
  779.     dh0:Tools/
  780.     Libs:
  781.     devs:
  782.     devs:keymaps/
  783.     devs:printers/
  784.     L:
  785.     fonts:
  786.     AXsh:
  787.     AXsh:etc/
  788.     AXsh:bin/
  789.     AXsh:info/
  790.     AXsh:man/
  791.     AXsh:usr/
  792.     AXsh:usr/spool/
  793.     AXsh:usr/spool/news/
  794.     AXsh:usr/spool/upload/
  795.     AXsh:usr/src/
  796.     AXsh:home/
  797.     #
  798.     
  799.     %commands:    /* p-no path, h-in home, q-check quota */
  800.     $wizard:    /* i-ignore args, f-not a filename r-raw mode */
  801.     $superuser:
  802.         run
  803.         path
  804.     $daemon:
  805.     $system:
  806.     $assistant:
  807.         utils:m
  808.         c:c13/runback
  809.     $privileged:
  810.     $trusted:
  811.     $friend:
  812.         lc:lc
  813.         lc:blink
  814.     f    AXsh:bin/mailserver
  815.     f    AXsh:bin/net
  816.     $qualified:
  817.     $normal:
  818.     $guest:
  819.     $visitor:
  820.     f    ALIAS
  821.     f    CD
  822.     f    CHFN
  823.     f    ECHO
  824.         EXECUTE
  825.     f    FINGER
  826.     q    FTP
  827.         IF
  828.     f    INTERNAL
  829.     f    PASSWORD
  830.     p    PROTECT
  831.     f    QUOTA
  832.         QUIT
  833.     f    SET
  834.     f    SYSINFO
  835.     f    UNALIAS
  836.     f    UNSET
  837.     p    UPLOAD
  838.     f    UPTIME
  839.     f    WAIT
  840.         WHICH
  841.     f    WHO
  842.     f    WHOAMI
  843.     f    WRITE
  844.     f    AXsh:bin/AMI
  845.     f    AXsh:bin/ascii
  846.     f    AXsh:bin/banner
  847.     f    AXsh:bin/bigtext
  848.     f    AXsh:bin/calendar
  849.         AXsh:bin/cat
  850.     r    AXsh:bin/CC
  851.     f    AXsh:bin/clear
  852.     rf    AXsh:bin/consoletalk
  853.         AXsh:bin/du
  854.     qp    AXsh:bin/editor
  855.         AXsh:bin/ffe
  856.     f    AXsh:bin/italics
  857.     f    AXsh:bin/last
  858.         AXsh:bin/ls
  859.     f    AXsh:bin/mach
  860.     qf    AXsh:bin/mail
  861.         AXsh:bin/man
  862.         AXsh:bin/more
  863.     f    AXsh:bin/netstat
  864.     h    AXsh:bin/news
  865.     f    AXsh:bin/passwd
  866.     f    AXsh:bin/register
  867.     qi    AXsh:bin/rn
  868.     qph    AXsh:bin/rx
  869.     qh    AXsh:bin/sigmaker
  870.         AXsh:bin/sx
  871.         AXsh:bin/sz
  872.     f    AXsh:bin/top
  873.         AXsh:bin/userstat
  874.         AXsh:bin/wc
  875.         AXsh:bin/XPR
  876.     i    C:Assign
  877.     f    C:Avail
  878.     fi    C:c13/Date
  879.     i    C:Dir
  880.         C:Info
  881.         C:List
  882.     f    C:Status
  883.     f    c:c13/ECS
  884.     f    c:c13/SI
  885.         c:c13/Cmp
  886.     f    c:c13/DevInfo
  887.     f    c:c13/Procs
  888.         C:Version
  889.         c:c13/WhereIs
  890.         Utils:DFrags
  891.     pqh    Utils:HamSharp
  892.     qph    Utils:LHarc
  893.     qph    Utils:LhA
  894.     qph    Utils:Lz
  895.     p    Utils:Uudecode
  896.     p    Utils:Uuencode
  897.     qp    C:Copy
  898.     qp    C:Delete
  899.     qp    C:Join
  900.     qp    C:Sort
  901.     qp    C:MakeDir
  902.     qp    C:C13/Move
  903.     qp    C:Rename
  904.         C:Type
  905.         LC:grep
  906.     p    LC:touch
  907.     p    LC:Diff
  908.     #
  909.  
  910.  
  911. Directory and command definitions:
  912. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  913. There are two main sections which are splitted in several parts by user level
  914. names:
  915.     %dirs:            %commands:
  916.     $daemon:        $daemon:
  917.     $system:        $system:
  918.     $wizard:        $wizard:
  919.     $superuser:        $superuser:
  920.     $assistant:        $assistant:
  921.     $privileged:        $privileged:
  922.     $trusted:        $trusted:
  923.     $friend:        $friend:
  924.     $qualified:        $qualified:
  925.     $normal:        $normal:
  926.     $guest:            $guest:
  927.     $visitor:        $visitor:
  928.     #            #
  929.  
  930. Each section begins with %<identifier>:  and usually ends with a #.  Access
  931. level specifiers are defined with $<specifier> qualifier.  There are four
  932. superuser access level specifiers:
  933.     daemon, system, wizard, superuser and
  934. eight normal user levels:
  935.     assistant, privileged, trusted, friend, qualified,normal, guest, visitor
  936. (You can get a list of these with passwd -ll.)
  937.  
  938. Allowed directories are defined in the %dirs:  section.  Each directory path
  939. name ends with a / or :.  All the paths defined after the access level
  940. specifier are valid for the corresponding access level.  This means that
  941. directories specified with lower level users are also valid for higher access
  942. level users, if you keep the access level specifiers in the same order as
  943. here and don't use the limiting character (#).
  944.  
  945. You can also make separate definitions for each access level, if you end a
  946. level definition with a #-sign.  You can mix these two defining methods too,
  947. for example "normal" has some of its own directories and all of the
  948. directories that are defined for "guest", which has only its own definitions.
  949.  
  950.     e.g.
  951.         %dirs:
  952.         $guest:
  953.         axsh:usr/
  954.         axsh:usr/spool/
  955.         axsh:usr/spool/news/
  956.         $visitor:
  957.         axsh:
  958.         axsh:man/
  959.         axsh:info/
  960.         #
  961.         $assistant:
  962.         axsh:
  963.         axsh:etc/
  964.         axsh:etc/adm/
  965.         #
  966.         $daemon:
  967.         $wizard:
  968.         $superuser:
  969.         ...
  970.  
  971.     Here "visitor" can access only his own home directories, AXsh root
  972.     directory, man and info directories. "guest" has all these and
  973.     some additional directories to access.
  974.     "assistant" can do only administrative jobs and has access to AXsh
  975.     root directory and /etc and /etc/adm directories.
  976.  
  977.  
  978. The %commands:  section lists all the executable commands for each access
  979. level.  We suggest that you modify your own rc file based in the rc file
  980. which is included in the distribution.  Commands for each access level are
  981. specified in the same way as in the directory section.  You must not add any
  982. intuition-based programs to the list.  For local use, just use path to add
  983. directories to AXsh:s path.  Only superuser (root), when logged in on
  984. console, is allowed to run any program.  Any superuser can use any directory
  985. too. Starting from 1.26, AXsh can also run resident and shell-internal
  986. commands under KS2.0 .
  987.  
  988. Before the command name in the /etc/rc file there are possibly some flags. If
  989. you put a "p" before the command, it's arguments can point only to the home
  990. directory, but the command can be run anywhere.  Like "p editor".  You can
  991. start the editor anywhere, but only edit your own files.  "h" means that the
  992. command can be run only in the home directory. Usually this means that the
  993. program stores its data files in the current (default) directory and allowing
  994. the use of the command elsewhere would cause configuration and other files
  995. pop up randomly anywhere the user can go. "i" will make the arguments
  996. disappear.  These three flags has no effect on superusers
  997.  
  998. "q" suggests that the used disk space is checked after the command.  "r" will
  999. cause the command to be run in raw-mode, instead of the usual console-mode.
  1000. Must be used for those programs that expects to be run on RAW:  .  "f" will
  1001. not try to do any interpretations on the arguments, otherwise ".." , "~" and
  1002. other Unix-like paths are converted to AmigaDOS format.
  1003.  
  1004.  
  1005. Global definitions:
  1006. ~~~~~~~~~~~~~~~~~~~
  1007. After (or before) dirs and commands there are a few other identifiers, which
  1008. can be changed quite freely depending on the configuration of the AXsh
  1009. system.
  1010.  
  1011. First there's the default home directory for users.  We suggest that you use
  1012. AXsh:home/, but it may be some other directory as well.  This controls where
  1013. the registered users' home directories are created.  This does not have any
  1014. effect to home directories that already exist. All path definitions MUST end
  1015. with a slash or colon ("/" or ":").
  1016.  
  1017. %news:  and %mail:  specifies where the news and mail systems are located.
  1018.  
  1019. %timezone: sets the string that is appended to date strings when sending
  1020. news or mail. It may be 9 characters long, the default is GMT if this entry
  1021. does not exist.
  1022.  
  1023. %upload:  defines where the network uploads go.  It's possible to send binary
  1024. files through net with news packets and they end up where this definition
  1025. points. Remember that this may or may not be the same directory that is used
  1026. in XPR. XPR upload directory is specified in /etc/xprotos.tab.
  1027.  
  1028. %exampleuser:  defines a path that points to the directory that will be
  1029. copied to new user's home when a new account is created.  You can store
  1030. read.me files etc.  there.  We recommend that you'd use AXsh:etc/exampleuser/
  1031. here.  Register uses c:copy to copy the files, so that should exist also.
  1032.  
  1033. %priority:  is the priority that AXsh takes on startup. You might use 1,
  1034. because you're using the system on the console paying nothing but the
  1035. electricity bill.  The poor guy on the phone line is paying the phone bill,
  1036. so he should be the one getting CPU time whenever he wants.
  1037.  
  1038. %thismachine:  tells the network name of this site.  No special format in
  1039. used, we've used this:  machine_name.town.state.  For example:
  1040. my_bbs.london.gb.  To make the network work, this name should be less than or
  1041. equal to 16 characters.
  1042.  
  1043. %organization:  defines an Internet organization line.  Could contain state
  1044. and town and name of your system.
  1045.  
  1046. %hub:  defines the machine that is your hub machine on the net.  Hub refers
  1047. to the main machine that you poll.  This and the %password:-entry are
  1048. normally associated with the rc.server event definitions.
  1049.  
  1050. %password:  defines the password that is sent when a net connection is
  1051. established and the hub machine has taken your machines name.  This is
  1052. something you and your hub machines administrator should decide.  The
  1053. password may not be too easy to guess, because other systems may have system
  1054. privileges on the remote hubs.  You do not have to give another host system
  1055. privileges if you give permission to use AXsh:bin/net to normal users.
  1056.  
  1057. %tempdir:  defines the temporary directory for network files.  Usually T:  or
  1058. RAM:. Currently this is only used to store network packets while receiving and
  1059. sending them. Rn also uses this while creating new articles.
  1060.  
  1061. When the system crashes and AXsh notices it, it tries to reboot the system
  1062. to avoid gurus and system down-times.  It's done by executing an external
  1063. program which is defined in %reboot:.  We recommend that you use SetCPU
  1064. romboot.
  1065.  
  1066. %answers:  defines the file where AXsh:bin/register stores users'answers.
  1067. Usually AXsh:etc/adm/answers.
  1068.  
  1069. %newregister:  enables or disables the login name "new".  "no" will disable
  1070. the feature.
  1071.  
  1072. %defuserlevel: defines the user level for newly-registered users. Default
  1073. level is "visitor". You can also define the quota for new users with
  1074. %defquota:. Default quota is 50k.
  1075.  
  1076.  
  1077. *****************************************************************************
  1078. 2.2 /etc/rc.server
  1079.  
  1080. AX-server has its own configuration file called /etc/rc.server.  It contains
  1081. modem initialization commands, network stuff and command lines that are used
  1082. to initiate new AXsh sessions and network events.  Default AX-server
  1083. configuration file looks like this:
  1084.  
  1085.     %bpslock:
  1086.     19200
  1087.     %bps:
  1088.     19200
  1089.     
  1090.     %serverpri:
  1091.     4
  1092.     
  1093.     %starthour:
  1094.     0
  1095.     %stophour:
  1096.     25
  1097.     
  1098.     %newshell:
  1099.     newshell AXAUX: from AXsh:etc/remote-startup
  1100.     
  1101.     %newcon:
  1102.     newshell raw:0/9/428/210/AXsh from AXsh:etc/local-startup
  1103.     
  1104.     %modem-reset:
  1105.     ATZ
  1106.     %modem-aa:
  1107.     ATS25=255W2\N3&C1&D0M0E0S0=1
  1108.     %modem-noaa:
  1109.     ATE1S0=0
  1110.     
  1111.     %eventhour:
  1112.     25
  1113.     %eventmins:
  1114.     0
  1115.     %eventnumber:
  1116.     ATX4E0DT161320
  1117.     %eventcommand:
  1118.     AXsh:bin/nntpnews <axaux: >axaux:
  1119.     
  1120.     %ringflash:
  1121.     0
  1122.     %device:
  1123.     serial.device
  1124.     %unitnumber:
  1125.     0
  1126.     %handshake:
  1127.     cts/rts
  1128.  
  1129. In the first line %bpslock:  defines possible baud rate lock.  If you have a
  1130. high speed modem that can always use the same speed (e.g.  19200 bps), you
  1131. can define %bpslock:.  If AX-server finds a %bpslock:  specifier from the
  1132. configuration file, it uses ALWAYS that bps rate regardless of actual
  1133. connection bps rate.  It will still show the connect message received from
  1134. the modem in the title bar.
  1135.  
  1136. For now you should only use speeds that are available in serial preferences !
  1137. If you are using multiple devices or other than the builtin serial port, you
  1138. MUST use a fixed DTE-speed and also tell axaux: what the used speed is
  1139. (for example AXAUX:serial.device/6/shared/checkcd/speed38400).
  1140.  
  1141. If %bpslock:  is not used, %bps:  defines the highest possible speed of you
  1142. modem.  All the controlling commands ("ATZ" etc.) are sent at this baud rate.
  1143. Baud rate between modem and Amiga is changed to match the rate at phone line
  1144. after a successful connection.  The baud rate in preferences is set
  1145. accordingly so that AXAUX will operate at the right speed.  This is why you
  1146. can only use speeds that are possible in serial preferences.
  1147.  
  1148. %serverpri:  defines AX-server's priority.  It should be less than five, but
  1149. more than one.  Four should be enough.  AX-server should never stuck.  NEVER.
  1150. It may take a while if the modem is giving it a hard time by using the
  1151. handshake (7-WIRE) to hold the transmission.  In that case you might want to
  1152. hard-reset the modem.  Commodore recommends that all the programs' priorities
  1153. should be less than 5.
  1154.  
  1155. If you are running a system that takes calls in only at night or only at day
  1156. time, you can describe starting and stopping hours for AX-server.
  1157. %starthour:  defines the hour when AX-server starts to answer the incoming
  1158. calls and %stophour:  when it stops.  For example if your system opens at
  1159. 20:00 (08:00 PM) and closes down at 06:00 (06:00 AM) you type here:
  1160.  
  1161.     %starthour:
  1162.     20
  1163.     %stophour:
  1164.     06
  1165.  
  1166. %newshell:  opens a new AXsh by executing a script which usually is stored in
  1167. AXsh:etc/ directory and named remote-startup.  This opens an AXsh session for
  1168. external users.
  1169.  
  1170. Local console session is opened in the same way.  %newcon:  opens a window to
  1171. the console and then executes AXsh starting script.  You can change the
  1172. window parameters, but don't touch the AXsh:etc/local-startup file.  It's
  1173. just fine. The window should be 80 columns wide, because currently most
  1174. programs expects that. If necassary, add some overscan to make the window
  1175. larger (I have 724x564 in PAL-interlace).
  1176.  
  1177. %modem-reset:  defines the string that resets the modem.  Usually ATZ. It is
  1178. wise to store modem settings with echo disabled, as that saves you from some
  1179. unexpected difficulties.  You should also disable the DTR checking, because
  1180. there is delay between AX-server releasing serial and AXAUX:  opening it
  1181. again. You can also set the DTR delay to a high enough value.
  1182.  
  1183. %modem-aa:  defines the autoanswer string.  This string is sent to the modem
  1184. when the time is between starthour and stophour.  You may have to modify this
  1185. depending on your modem's command language.
  1186.  
  1187. AX-server sends %modem-noaa:  string to modem when stophour occurs.  It can
  1188. reset modem or just put autoanswer off.  Currently AX-server just resets the
  1189. modem if it needs to turn the autoanswer off, so this entry is not really
  1190. used.
  1191.  
  1192. %eventhour:  and %eventmins:  tells AX-server when to make a network call.
  1193. You have to discuss about this with your remote hub's administrator.
  1194.  
  1195. %eventnumber:  defines the string that AX-server sends to modem when an event
  1196. hour occurs.  Usually it contains ATDT<phonenumber>.
  1197.  
  1198. %eventcommand:  defines the script or program that is to be executed after a
  1199. connection is established between your machine and remote hub.  If the number
  1200. is busy or the connect fails, AX-server will try again in five or ten minutes
  1201. until it succeeds or the the event hour does not match anymore.  If you are
  1202. calling an AXsh hub, the event command would be something like:
  1203.  
  1204.     AXsh:bin/net <axaux: >axaux:
  1205.  
  1206. AX-server can flash the screen when phone rings.  %ringflash:  defines the
  1207. situations where it flashes the screen:
  1208.  
  1209.     0 - do not flash
  1210.     1 - when sleeping (not taking calls in)
  1211.     2 - when answering calls
  1212.     3 - always
  1213.  
  1214. There are also two additional definitions.  You can use %device:  and
  1215. %unitnum:  to use some other device than the built-in serial.  If you set
  1216. these, you have to do modifications to the %newshell too.  e.g.
  1217.  
  1218.     newshell AXAUX:modem0.device/0/ from AXsh:etc/remote-startup
  1219.  
  1220. However, the ring checking is still done directly from the CIA.  If you use a
  1221. printer much, you might want to turn the flash off, because the modem Ring
  1222. Indicator uses the same CIA input line with the printer Online Select line
  1223. and AX-server would think that the phone is ringing.
  1224.  
  1225. If you are not using the builtin serial, you should have 0 in the %ringflash:
  1226. entry !
  1227.  
  1228. %handshake:  configuration entry is for those people who don't have the
  1229. possibility to use cts/rts (7wire) handshaking with their modem.  In that
  1230. case set it to "none".  AXAUX: uses handshaking by default, so you also
  1231. need to change the %newshell:  entry to include /noflow.
  1232.  
  1233.     newshell AXAUX:serial.device/0/noflow from AXsh:etc/remote-startup
  1234.  
  1235. You can also use several different configuration files, because one can be
  1236. picked using a command line parameter when invoking AX-server.  The name of
  1237. the configuration file can be seen in the window title bar during the
  1238. setup. The synopsis is:
  1239.  
  1240.     AX-server [-f<config-file>] [-x<xpos>] [-y<ypos>] [-h<title-height>]
  1241.  
  1242. As you can see, it is also possible to define where the window will be opened
  1243. and if the system title font is larger than 8 points, the title bar height
  1244. can also be set.  You still should remember that if the window will not fit
  1245. into the screen, the program does not try to reopen it and exits.
  1246.  
  1247.  
  1248. You can also run a multiline system, if you mount several axaux-handlers,
  1249. named differently of course. You also need as many server configurations.
  1250. You need seperate handler for each line, because AXAUX-handler is not
  1251. designed to handle several ports simultaneously.
  1252.  
  1253.  
  1254. *****************************************************************************
  1255. 2.3 /etc/rc.ffe
  1256.  
  1257. FFE is a `file area' for users.  If you have files to download in your
  1258. system, it's reasonable to set up ffe.  For that you need to modify rc.ffe.
  1259. FFE (File Front End) is stored in AXsh:bin/ and it uses a VT100 interface.
  1260.  
  1261. AXsh:etc/rc.ffe looks like this:
  1262. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1263.     %filepath:
  1264.     Archive:
  1265.     
  1266.     %descpath:
  1267.     axsh:etc/ffe/
  1268.     
  1269.     %xprpath:
  1270.     axsh:bin/xpr
  1271.     
  1272.  
  1273.     %suffix:
  1274.     .zoo utils:zoo l
  1275.     %suffix:
  1276.     .lha utils:lha v
  1277.     %suffix:
  1278.     .lzh utils:lha v
  1279.     %suffix:
  1280.     .dms utils:dms view
  1281.  
  1282.  
  1283. %filepath:  in the first line defines where your public files are stored on
  1284. the disk.  It may also be a complete path name as well as an assign.  If it
  1285. is a path, it must end with a /. Now you can also define several (16)
  1286. %filepath: entries. In this case FFE will show 'links' to all of them in
  1287. the top level directory and you can change between them.
  1288.  
  1289. FFE will give access to all subdirectories that are under the defined filepath
  1290. directory. This is not always wanted, for example if you have some directories
  1291. that you want to be private. FFE won't show a directory (and you can't enter
  1292. it when in FFE) if its hidden-flag is set or the execute-flag is unset. So,
  1293. you can hide whole branches of the directory tree from the normal users.
  1294. Superusers still have access to all file directories.
  1295.  
  1296. %descpath:  defines where the file description texts are stored.  This
  1297. directory should exist to make the descriptions work.  Each file may have a
  1298. short description file.  (Read FFE's manual page for more information).
  1299. Don't change this.  If there is no description file, FFE will show the
  1300. filenote, if that exists.
  1301.  
  1302. %xprpath:  defines where the xpr program is stored.  Usually it's with AXsh
  1303. and is stored in AXsh:bin/.
  1304.  
  1305. With %suffix: entries you can define different commands for different types
  1306. of files. This can be used to allow a user to take a look into the contents
  1307. of a file packet. Just define a command and an appropriate option for a
  1308. suffix. The command is started with 'c' and if no suffix match and the file
  1309. is not binary, it is displayed with a pager.
  1310.  
  1311. The default rc.ffe will have suffixes defined for zoo, lha, lzh and dms
  1312. packets, but you may have to change the paths.
  1313.  
  1314.  
  1315. *****************************************************************************
  1316. 2.4 /etc/rc.news
  1317.  
  1318. The news subsystem can be configured by changing various configuration
  1319. entries in the /etc/rc.news configuration file.  If you use UUCP, you have to
  1320. change the default values defined there.  This part of the document will give
  1321. suggestions only and better settings may be possible.  Even if you use AXsh
  1322. mail and news you should read what all possibilites there is.
  1323.  
  1324. The entry %news:  in the main configuration file (/etc/rc) defines the
  1325. location of the newsgroups.
  1326.  
  1327.  
  1328. /etc/rc.news:
  1329. ~~~~~~~~~~~~~
  1330.     %grabfile:
  1331.     Grab.rn
  1332.     The name of the grab file created in home directory.  Whenever
  1333.     a Grab option is selected in rn, this filename is used.
  1334.  
  1335.     %batchfile:
  1336.     AXsh:usr/spool/news/%s.batch
  1337.     This is the file where message filenames that are sent to
  1338.     other system are saved. %s in this string is the hostname.
  1339.     With UUCP you would use UUSPOOL:batch/%s. See also %sysfile:.
  1340.  
  1341.     %sysfile:
  1342.     AXsh:usr/spool/news/Sys
  1343.     Hosts to whom forward news. This file is very much like the
  1344.     Sys file in UUCP. Read explanations about the entries from
  1345.     the file itself. In UUCP you would use UULIB:sys.
  1346.  
  1347.     %newsgroupfile:
  1348.     AXsh:usr/spool/news/NewsGroups
  1349.     File  where  the newsgroups are listed.  Only groups present
  1350.     in  this  file are consired active by rn.  The numbers after
  1351.     the newsgroup names in the file are the expire times,  older
  1352.     messages in the corresponding group are deleted when "rn tidy"
  1353.     is executed.
  1354.  
  1355.     %quotestring:
  1356.     > %s
  1357.     Used when doing follow-ups. %s is the quoted string itself.
  1358.     Newline is appended automatically.
  1359.  
  1360.     %postnews:
  1361.     internal
  1362.     UUCP:c/postnews <%f -f %u -r "%r" -R UULIB:Newsheader
  1363.     This  defines the command used when posting news.  With AXsh
  1364.     news  you  should  use  internal and with UUCP use something
  1365.     like UUCP:c/postnews <%f -f %u -r "%r" -R UULIB:Newsheader.
  1366.     As you can see, you can use some special variables.
  1367.         %f = name of the article file
  1368.         %u = user login name
  1369.         %r = user full name
  1370.  
  1371.     If you use Active file, you HAVE TO use external postnews.
  1372.     Also remember that Rn does not generate Path:,From:,Date: nor
  1373.     Organization: lines with external postnews.
  1374.  
  1375.     %distribution:
  1376.     world
  1377.     Distribution  defines  the Distribution:-field for messages.
  1378.     The default value is "world".
  1379.  
  1380.     %fupref:
  1381.     In %s %s tells:
  1382.     This  defines the followup header line.  The first %s is the
  1383.     article-ID, the other one is the sender.
  1384.  
  1385.     %sendmail: (Obsoletes %mailer:)
  1386.     axsh:bin/mailserver %f
  1387.     UUCP:C/Sendmail <%f -f %u -R "%r" -t "%t"
  1388.      %f = name of the letter file
  1389.      %u = user login name
  1390.      %r = user full name
  1391.      %t = receiver (login name only)
  1392.     Rn  now edits mail replies itself instead of executing the mailer
  1393.     command. So, %mailer: configuration entry was made obsolete by
  1394.     %sendmail: entry, which works similarly to that in rc.mail.
  1395.  
  1396.     However, CC: (%c) is not available and "AXsh:bin/mailserver %f"
  1397.     is used instead of "internal". This is also the default setting.
  1398.     Rn doesn't provide a Message-ID: for mail messages, but at least
  1399.     UUCP1.16D version of the sendmail adds it automatically.
  1400.  
  1401.     %netlogfile:
  1402.     AXsh:etc/adm/netlog
  1403.     Name  of  the  netlogfile.   Net, rn and other programs will
  1404.     write short report lines here about net activity.
  1405.  
  1406.     %activefile:
  1407.     none
  1408.     Name of the active file to be used.  "none" means that it is
  1409.     not used.
  1410.  
  1411.     Currently the active file is only read, and you have to use
  1412.     external postnews command if you use it. Some of the commands
  1413.     in Rn are also disabled if you use an active file (CNews),
  1414.     because they must be handled by a seperate program.
  1415.  
  1416.     %nntpgroupfile:
  1417.     AXsh:usr/spool/news/NNTPGroups
  1418.     The file where the NNTP-newsgroups are listed. Only used in the
  1419.     NNTPnews-program, which imports news from a NNTP server.
  1420.     (The program is available on separate request.)
  1421.  
  1422.     %nntplogin:
  1423.     \n            kaima-ts>    kummi-ts>
  1424.     "term flow hard\n"    kaima-ts>    kummi-ts>
  1425.     "term telnet-t\n"    kaima-ts>    kummi-ts>
  1426.     "telnet news.cc.tut.fi 119\n"    "200 lehtori" 200
  1427.     #
  1428.     Set of Send-Expect1-Expect2 strings used when NNTPnews logs in to
  1429.     the NNTP server.
  1430.  
  1431.     %nntpdebug:
  1432.     0
  1433.     Debug level for NNTPnews. 0 means no logging, 1 logs only the
  1434.     handshake process and group responses, 2 logs all traffic (slow!).
  1435.  
  1436.  
  1437. NEWSGROUPS
  1438.     All active newsgroups are listed in the Newsgroups file and they
  1439.     should have directories, and .next files.  AXsh uses tree-structured
  1440.     directories.  For example comp.sys.amiga.misc has a directory
  1441.     AXsh:usr/spool/news/comp/sys/amiga/misc.
  1442.  
  1443.     AXsh news also uses .lowest files where it stores the number of the
  1444.     lowest article in that newsgroup.
  1445.  
  1446.     If you use CNews' active-file, newsgroups-file is not used and
  1447.     .next and .lowest files are not used. Rn will believe what the
  1448.     active file says. You also shouldn't use rn tidy or rn active
  1449.     when using CNews.
  1450.  
  1451.  
  1452. SYS-file
  1453.     In this file we define where to send news articles.  Name of the file
  1454.     is defined in the news configuration file (/etc/rc.news).  Each line
  1455.     (that is not a comment or an empty line) defines a host and a
  1456.     newsgroup patterns.  Only articles in groups that are defined in the
  1457.     sys file are forwarded.  Negative patterns can also be used, so that
  1458.     news in those groups are not sent.
  1459.  
  1460.     Patterns that are currently supported include:
  1461.         *,*str,str*,*str*,str
  1462.     and negated versions of these.
  1463.  
  1464.     example:
  1465.         remote:*,-local*
  1466.  
  1467.     All groups except groups starting with a string "local" are sent to
  1468.     the remote host. The host name must start from the first column.
  1469.  
  1470.     Things that are different from UUCP:
  1471.         ? and machine aliases not supported yet
  1472.         \ (line continuation) is not supported yet.
  1473.           However, lines may be upto 256 characters long.
  1474.  
  1475.  
  1476. NEWSGROUPS-file
  1477.     This  file  contains all active newsgroups, expire times for
  1478.     the messages in each groups and additional flags.
  1479.         e.g.
  1480.         alt.hackers            60 r
  1481.         axnet.axsh.dev            60 
  1482.         junk                10 
  1483.  
  1484.     Here  the  group  alt.hackers  is  a  read-only group, where
  1485.     posting is not allowed. All articles older than 60 days will
  1486.     be removed when a command "rn tidy" is executed.
  1487.  
  1488.     axnet.axsh.dev  has no restrictions, but the exprire time is
  1489.     the default 60 days.
  1490.  
  1491.     junk could be defined to be a read-only group also, but here
  1492.     the expire time is set to 10 days.
  1493.  
  1494.     Newsgroups file is not used when Active file is used.
  1495.  
  1496.  
  1497. ACTIVE-file
  1498.     The  active  file  rn  generates (rn active <filename>) only
  1499.     contains  the  newsgroup  names  and  the number of the last
  1500.     and first article in each group. Do not generate active file
  1501.     is you don't know exactly what you are doing.  If  your news
  1502.     system  already  creates and handles an active file,  DO NOT
  1503.     use  Rn  to  generate  an  active file, but use %activefile:
  1504.     configuration entry instead.
  1505.         e.g.
  1506.         alt.hackers 0001027 0000765 y
  1507.         alt.sys.amiga.uucp 0001384 0000986 y
  1508.         comp.arch 0001561 0001548 y
  1509.         comp.sys.cbm 0002951 0002551 y
  1510.         rec.arts.sf.starwars 0002546 0002546 y
  1511.  
  1512.  
  1513. *****************************************************************************
  1514. 2.5 /etc/rc.mail
  1515.  
  1516. The mail subsystem can be configured by changing various configuration
  1517. entries in the /etc/rc.mail configuration file.  If you use UUCP, you have to
  1518. change the default values defined there.  This document will give suggestions
  1519. only and better settings may be possible.  Even if you use AXsh mail and news
  1520. you should read what all possibilites there is.
  1521.  
  1522. The entry %mail:  in the main configuration file (/etc/rc) defines the
  1523. location of the mailbox files.
  1524.  
  1525.  
  1526. /etc/rc.mail:
  1527. ~~~~~~~~~~~~~
  1528.     %sendmail:
  1529.     internal
  1530.     UUCP:c/sendmail <%f -f %u -R "%r" -t %t -c "%c"
  1531.     This  defines  what  command  is  used to deliver an already
  1532.     compiled  mail  message.   For  AXsh  mail  this  should  be
  1533.     "internal", for UUCP you would use
  1534.     UUCP:c/sendmail <%f -f %u -R "%r" -t "%t" -c "%c".
  1535.     As you can see, a number of special variables can be used.
  1536.         %f = name of the letter file
  1537.         %u = user login name
  1538.         %r = user full name
  1539.         %t = receiver (login name only)
  1540.         %c = carbon copies
  1541.  
  1542.     For external sendmail, only one message is generated and the
  1543.     program should also handle the receivers in the Cc:-line.
  1544.  
  1545.     %routetable:
  1546.     AXsh:usr/spool/mail/Routetable
  1547.     This  entry  gives  the  filename  for the AXsh mail routing
  1548.     table.   Each  line  in  the file lists two host names.  The
  1549.     second  host  name  defines  the host where the mail will be
  1550.     delivered  if  the  receiver's host is the same as the first
  1551.     host name.
  1552.  
  1553.         e.g.
  1554.         x.ola.fi    tap.tre.fi
  1555.  
  1556.     All messages to x.ola.fi are sent to tap.tre.fi to be further
  1557.     forwarded. This file is NOT used if UUCP (external) sendmail
  1558.     is used.
  1559.  
  1560.     %aliasfile:
  1561.     AXsh:usr/spool/mail/Mailaliases
  1562.     The file defined here is used for mail aliases.  Aliases are
  1563.     expanded  before  .forward files and they refer only to mail
  1564.     addresses,  no  piping  to  commands  are  yet  implemented.
  1565.     Further  alias and .forward replacement can be disabled with
  1566.     a "\"-sign.
  1567.  
  1568.         e.g.
  1569.         pasi.ojala: \root
  1570.         root: albert
  1571.         axsh: root root@tap.tre.fi root@x.ola.fi root@oxygene.tku.fi
  1572.  
  1573.     This file is NOT used if UUCP sendmail is used.
  1574.     Remember that the lines (and addresses) are case-sensitive !!
  1575.  
  1576.  
  1577. $HOME/.forward
  1578.     Users can create a file named .forward in their home directory
  1579.     to   forward  received  messages  to  other  systems  or  to
  1580.     different user name in the same system.  .forward consist of
  1581.     lines,  each  carrying  one mail address.  Further alias and
  1582.     .forward expansions can disabled with a "\"-sign.
  1583.  
  1584.         e.g.
  1585.         \root
  1586.         albert@tap.tre.fi
  1587.  
  1588.     Does UUCP use .forward-files ?
  1589.     Remember that the lines (and addresses) are case-sensitive !!
  1590.  
  1591.  
  1592. *****************************************************************************
  1593. 2.6 /etc/issue & /etc/motd
  1594.  
  1595. /etc/issue is displayed before the login prompt and could have e.g.  the
  1596. system name and OS version.  This file is optional:  if it does not exist, no
  1597. error message is printed. Don't use long issue files.
  1598.  
  1599. /etc/motd is the `message-of-the-day' file, which is displayed to every user
  1600. after a successful login.  It's recommended that the administrator modifies
  1601. this file and adds at least some explanations about how to get help (man -k
  1602. -).
  1603.  
  1604.  
  1605. *****************************************************************************
  1606. 2.7 /etc/forbiddenvars
  1607.  
  1608. This file defines which variables can't be set by user. You need this with
  1609. 'foreign' newsreaders and other UUCP stuff, because a user shouldn't be
  1610. allowed to change e.g. the POSTNEWS variable.
  1611.  
  1612. You can also define how many times a given variable can be set (usually 1),
  1613. so that you can set them in /etc/globallogin, which is executed before
  1614. .login. AXsh 1.3 exports all the variables to 2.0 shell local variables,
  1615. if it is possible (if you have a ks2.0 system). Since AXsh version 1.3, all
  1616. variable names are case-insensitive, but the case is preserved.
  1617.  
  1618. /etc/ForbiddenVars:
  1619. ~~~~~~~~~~~~~~~~~~
  1620.     user
  1621.     USERNAME
  1622.     HOME
  1623.     organization
  1624.     version
  1625.     quota
  1626.     lastlogin
  1627.     MAILER    1
  1628.  
  1629.     <variable-name> <soft-spaces> [<set's allowed>]
  1630.  
  1631. All these variables can only be set by the system, except MAILER is allowed
  1632. to be set once. Of course you would want to use /etc/GlobalLogin to set the
  1633. variable before the user can run his own scripts.
  1634.  
  1635.  
  1636. *****************************************************************************
  1637. 2.8 /etc/globallogin
  1638.  
  1639. GlobalLogin is executed EVERY time a user logs in, before executing ~/.login,
  1640. so that you can be certain that needed variables are set. Globallogin is
  1641. executed with user privileges, but if you use /etc/ForbiddenVars correctly,
  1642. you can set the variables you like.
  1643.  
  1644.  
  1645. *****************************************************************************
  1646. 2.9 /etc/crontab
  1647.  
  1648. Cron is a program that executes particular programs at particular time.  AXsh
  1649. does not contain cron, but there are at least two PD crons, which are tested
  1650. and found useful with AXsh :  CyberCron and DCron.  Both can be found from
  1651. Fish Disks.
  1652.  
  1653. The recommended crontab file should contain at least these lines:
  1654.  
  1655.  
  1656. # axsh:etc/crontab
  1657. #
  1658. #min    hr    day    mon    dow    command
  1659. # adjust time every 24 hours.. keep us in line
  1660. 0     0     *     *     *    c:setclock load
  1661. #    run rn tidy
  1662. 0    7    *    *    *    axsh:bin/rn tidy -m300
  1663. #    clean /etc/adm/ of all the crap AXsh places there during a user call
  1664. 0    18    *    *    *    c:type axsh:etc/adm/log#? >>axsh:home/root/temp/luserlog
  1665. 1    18    *    *    *    c:delete >nil: axsh:etc/adm/log#?
  1666. 2    18    *    *    *    axsh:bin/shorten 1000 axsh:home/root/temp/luserlog
  1667. 3    18    *    *    *    axsh:bin/shorten 5000 axsh:etc/adm/netlog
  1668. 59    18    *    *    *    c:setclock load
  1669.  
  1670.  
  1671. The first event occurs at 00:00.  Cron fixes Amiga's clock up to date again.
  1672. At 07:00 it runs rn tidy, which cleans old news files off the disk.  Then at
  1673. 18:00 (06:00 PM) it's time to clean old log files and restore them in root's
  1674. home directory for further handling.  Shorten makes log files shorter, so
  1675. that they won't eat too much disk space.
  1676.  
  1677.  
  1678. *****************************************************************************
  1679. 2.10 /etc/xprotos.tab
  1680.  
  1681. Both FFE and XPR need /etc/xprotos.tab to operate.  There's a default
  1682. xprotos.tab, but it can be modified, if new powerful protocols come out in
  1683. xpr versions.  You have to be careful not to allow overwriting in uploads,
  1684. because this is a serious security risk.  For example xmodem is a protocol
  1685. that should not be allowed.  It is included in the default xprotos.tab-file,
  1686. because it uses the xprymodem.library and this library has an upload-path
  1687. feature.
  1688.  
  1689. The default xprotos.tab looks like this:
  1690. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1691. "zmodem"
  1692. Library: xprzmodem.library
  1693. Descrip: Binary/No overwrite/Full duplex/No delete/No paths
  1694. Options: TN ON B16 F0 E10 AN DN KY SN RN PAXsh:usr/spool/upload
  1695. Default: TC,ON,B16,F0,E10,AY,DN,KY,SN,RN,P
  1696.  
  1697. "zmodem-home"
  1698. Library: xprzmodem.library
  1699. Descrip: Binary/No overwrite/Full duplex/No delete/HomeDir
  1700. Options: TN ON B16 F0 E10 AN DN KY SN RN P
  1701.  
  1702. "zmodem-window8k"
  1703. Library: xprzmodem.library
  1704. Descrip: Binary/No overwrite/Full duplex/8k window/No delete
  1705. Options: TN ON B8 F8192 E10 AN DN KY SN RN PAXsh:usr/spool/upload
  1706.  
  1707. "xmodem"
  1708. Library: xprymodem.library
  1709. Descrip: Chop/Checksum
  1710. Options: YS,Z1,C0,B0,OAXsh:usr/spool/upload
  1711.  
  1712. "xmodem-crc"
  1713. Library: xprymodem.library
  1714. Descrip: Chop/CRC16
  1715. Options: YS,Z1,C1,B0,OAXsh:usr/spool/upload
  1716.  
  1717. "ymodem"
  1718. Library: xprymodem.library
  1719. Descrip: Batch/Chop/CRC16/1K blocks
  1720. Options: YB,Z1,C1,B1,OAXsh:usr/spool/upload
  1721.  
  1722. "ymodem-g"
  1723. Library: xprymodem.library
  1724. Descrip: Batch/Chop/CRC16/1K blocks/No Acks or retries on error
  1725. Options: YG,Z1,C1,B1,OAXsh:usr/spool/upload
  1726.  
  1727. "ymodem-a"
  1728. Library: xprymodem.library
  1729. Descrip: Batch/Chop/2K blocks/No CRC checking or retries
  1730. Options: YA,Z1,C1,B1,OAXsh:usr/spool/upload
  1731.  
  1732. Each protocol definition starts with a general protocol name.  This has
  1733. nothing to do with the library name or options it uses, it is just the name
  1734. the user uses to refer to it.  It can be found between two "-marks.  Next
  1735. line describes the library this particular protocol opens.  Descrip:  is a
  1736. description line, which will be displayed when user starts the transfer.
  1737. Options:  defines protocol oriented features.  They are usually explained in
  1738. the manual delivered with that specific library. If the options string ends
  1739. with a "P" (upper case p), the home directory of the user is appended.
  1740. This feature is need if you want to allow uploading to home directories as
  1741. well as to the global upload directory. See xpr.man for more info.
  1742.  
  1743. Xpr will write upload and download report lines to /etc/adm/xpr.log, if the
  1744. transfer protocol support file length and transfer progress indication.
  1745.  
  1746.  
  1747. *****************************************************************************
  1748. 2.11 /etc/adm/ directory
  1749.  
  1750. /etc/adm directory is used to store log files generated by AXsh and some
  1751. external programs.  Administrator should check these files regularly. The
  1752. following files may be found on the active AXsh's /etc/adm directory:
  1753.  
  1754. ------rwed-------- 17 8414     05-Jul-92 01:15    Xpr.log
  1755. ------rwed-------- 46 22701    04-Jul-92 23:21    answers
  1756. ------rwed-------- 38 19150    05-Jul-92 18:03    cron.err
  1757. ------rwed-------- 65 32952    05-Jul-92 03:17    netlog
  1758.  
  1759. Plus some Log.xx.xx.xx files, if AXsh is currently active.  Xpr.log contains
  1760. short information about files sent or received using xpr.  Answers is the
  1761. file, where AXsh:bin/register stores users' answers.  Cron.err is cron's log
  1762. file.  Netlog contains short status lines of net activity.  These lines can
  1763. be analyzed with AXsh:bin/netstat.
  1764.  
  1765.  
  1766. *****************************************************************************
  1767. 2.12 /etc/Questionnaire
  1768.  
  1769. Questionnaire file contains all the administrator-defined questions asked by
  1770. AXsh:bin/register when a new user logs in the first time.  The questionnaire
  1771. file may look like this:
  1772.  
  1773.     Street address: 
  1774.     Postal address:
  1775.     Town: 
  1776.     Phone: 
  1777.     Age: 
  1778.     Computer: 
  1779.     Do you know how to use Amiga Shell? 
  1780.     Do you know how to use Unix? 
  1781.  
  1782.  
  1783. *****************************************************************************
  1784. 2.13 /etc/adm/Answers
  1785.  
  1786. All the answers users give to your questions in /etc/questionnaire file are
  1787. stored in /etc/adm/answers.  It's important that you check these every day
  1788. and kick jokers out of your system.  If the user have `missed' some
  1789. questions, but looks OK (check his /etc/adm/Log.xx.xx.xx), it's better that
  1790. you just send him or her mail and ask the missing question again and add it
  1791. to the answers file.
  1792.  
  1793.  
  1794. *****************************************************************************
  1795. 2.14 /etc/exampleuser/ directory
  1796.  
  1797. The contents of the /etc/exampleuser/ directory will be copied to every new
  1798. user's home directory after registering.  Default /etc/exampleuser/ looks
  1799. like this:
  1800.  
  1801. ------rwed-------- 1 388    02-Jul-92 13:54 .login
  1802. ------rwed-------- 1 332    02-Jul-92 13:54 .logout
  1803. ------rwed-------- 1 38        02-Jul-92 13:54 .plan
  1804. ------rwed-------- 1 37        02-Jul-92 13:54 .project
  1805. ------rwed-------- 1 83        02-Jul-92 13:54 .signature
  1806.  
  1807. You may add your own files there as well, but try to avoid that because most
  1808. of the users keep them in their home directory even if they don't need them.
  1809. Extra files eat storage space.
  1810.  
  1811.  
  1812. *****************************************************************************
  1813. 2.15 /etc/register.*
  1814.  
  1815. These files have the texts that are sent to a new user when he registers.
  1816. Register.script is a script file (or a command) which is invoked after an
  1817. account is created.  The new account (login name) is given as an argument.
  1818. The example register.script sends a pre-written mail message to new users and
  1819. displays register.after-textfile.
  1820.  
  1821.  
  1822. *****************************************************************************
  1823. 2.16 /etc/nologin
  1824.  
  1825. When this file exists, no logins are allowed and any non-superuser users
  1826. currently on the system are kicked out. The file should contain the reason
  1827. for shutdown, like "Owners game session is about to begin" :-)
  1828. Superusers get a polite message which informs them that the system is
  1829. possibly going down and it would be nice if they logged out.
  1830.  
  1831.  
  1832. *****************************************************************************
  1833. 3.0 Networking under AXsh
  1834.  
  1835. One of the most powerful features of AXsh is its cabability to operate in a
  1836. network.  This means that you can send files, news and mail between two
  1837. Amigas or between an Amiga and a Unix machine.  Usually one Amiga running
  1838. AXsh collects news from Internet and then deliveres them to a smaller net of
  1839. AXsh systems.  UUCP connection is recommended when doing Internet access.
  1840.  
  1841. You can also use other transport mechanisms, like TrapDoor to exchange the
  1842. packets, but you also need some scripts to handle the packing and unpacking.
  1843. AXshSZIMEX03.lha includes AREXX scripts to be used with TrapDoor and the
  1844. packet is either included in the package or available in a seperate support
  1845. package.
  1846.  
  1847.  
  1848. *****************************************************************************
  1849. 3.1 Network installation
  1850.  
  1851. For networking you need the programs AXsh:bin/net, AXsh:bin/rn,
  1852. AXsh:bin/mailserver and C:LhA.  You also need xprzmodem.library (version 2.52
  1853. is recommended). If you don't have much RAM, you should define %tempdir:  in
  1854. /etc/rc to point somewhere in disk.
  1855.  
  1856.  
  1857. *****************************************************************************
  1858. 3.2 Creating a node
  1859.  
  1860. What you have to do is define the machine name, hub name and password in
  1861. /etc/rc and the event time, event number (the number the hub is reachable
  1862. from) and the event command in /etc/rc.server .  Refer to the sections 2.1
  1863. and 2.2 for details.
  1864.  
  1865. The admistrator in the hub will have to make an account for your machine and
  1866. insert the node into the mail system routetable.  You also have to discuss
  1867. with him/her about the calling time, it is not very nice if all nodes try to
  1868. call in the same time.  If the hub allows the command net for normal users,
  1869. you can even register the node yourself.  The account for a node is excactly
  1870. the same as accounts for normal users.  Your machine must also be added to
  1871. the /usr/spool/mail/Routetable and /usr/spool/news/Sys so that you can
  1872. receive mail and news.
  1873.  
  1874. The same additions have to be done in your system.  You have to create the
  1875. Routetable file, which has lines like:
  1876.  
  1877.     <remote-node>    <route-node>
  1878.  
  1879. The <remote-node> is the name of the system you are sending mail to and the
  1880. <route-node> is the system the mail is forwarded to (usually your hub).  The
  1881. <remote-node> must start from the first column, but there may be any number
  1882. of spaces and TABs between the two names.
  1883.  
  1884. If you're not the hub and your system's name is (for example) pasbox.hro.fi
  1885. and your hub's name is tap.tre.fi, your routetable would look like this:
  1886.  
  1887.     tap.tre.fi    tap.tre.fi
  1888.     7heaven.ola.fi    tap.tre.fi
  1889.  
  1890. This means that all the messages going to 7heaven.ola.fi are first delivered
  1891. to tap.tre.fi, which forwards them to 7heaven.ola.fi, because you don't have
  1892. a direct connection to 7heaven.ola.fi.
  1893.  
  1894. The Sys file defines what newsgroups are forwarded and where.  See the
  1895. example sys file for explanations about how to set it up.
  1896.  
  1897.  
  1898. *****************************************************************************
  1899. 3.3 Creating a new network
  1900.  
  1901. If there are some AXsh sites on your neighbourhood, but no working network,
  1902. it's highly recommended, that you make one.  By using AXnet you can transfer
  1903. news, mail and files between systems.  AXsh uses a star model in network,
  1904. e.g.  one system is a hub and other systems make networking calls to hub.  By
  1905. using this method maximum delay between sending and receiving a message is
  1906. two days, if every node polls the hub once a day.  It is also possible to use
  1907. a tree structure, but the message delays will get longer.  To get the best
  1908. possible connections available, it's highly recommended that AXnets are also
  1909. connected to Internet via UUCP.
  1910.  
  1911. Creating a new network is quite easy. For one thing you have to decide who's
  1912. going to be the hub.  Then you have to agree about passwords and machine
  1913. names of each node.  The hub system then creates accounts for the other
  1914. machines, and depending on the installation gives them system privileges.
  1915.  
  1916. All nodes has to update /usr/spool/mail/routetable.  Routetable contains
  1917. information about nodes attached in the network and tells where to forward a
  1918. message, if the receiver's machine is not the same as sender's.
  1919.  
  1920. One more thing:  if you're using network cababilities of AXsh, put lha packer
  1921. to your C: directory!  This may become configurable in the future versions.
  1922.  
  1923. *****************************************************************************
  1924. 3.4 Connecting to Internet
  1925.  
  1926. Use UUCP. AXsh mail and news programs should be configurable enough to
  1927. co-exist peacefully with the UUCP system.  However, if you have problems,
  1928. don't hesitate to contact me (see the E-mail addresses in the end of this
  1929. document). We also have a NNTP news importer available.
  1930.  
  1931. Since 1.3 you should also be able to use AXsh Rn to read CNews news.
  1932. However, to mix AXsh successfully with either UUCP or CNews (or any other
  1933. news system) you have to configure the news and mail systems appropriately
  1934. and you MUST define an external postnews command.
  1935.  
  1936.  
  1937. *****************************************************************************
  1938. 3.5 UUCP - Using AXsh for remote login with UUCP (1.16D)
  1939.  
  1940. The /etc directory contains files UUCP-startup2.0 and UUCP-passwd-entry,
  1941. which may help you.  With UUCP you cannot use newshell to launch AXsh like
  1942. the AX-server does, because newshell returns straight away and getty will
  1943. assume that it can use the serial again.
  1944.  
  1945. UUCP-startup should have in ks 2.0:
  1946.  
  1947.     AXsh <>axaux:serial.device/0/shared/checkcd -log
  1948.  
  1949. or in ks1.3:
  1950.  
  1951.     AXsh <axaux:serial.device/0/shared/checkcd >axaux: -log
  1952.  
  1953. A getty-entry cannot use redirections, so you must have the above in a script
  1954. file, which you then execute from the getty-entry:
  1955.  
  1956.     bbs,*,444,0,(BBS-login),ram:,execute AXsh:etc/UUCP-startup
  1957.  
  1958. With UUCP you should also do some changes to /etc/rc.news (and /etc/rc.mail).
  1959.  
  1960. If you are having unexpected gurus or other weird things happen, you might
  1961. try to cure it by putting a stack command in the startup file before the AXsh
  1962. is launched.  All the programs in the AXsh distribution usually run with the
  1963. default 4k stack, but external programs may consume more stack:
  1964.  
  1965.     stack 30000
  1966.     AXsh <>axaux:serial.device/0/shared/checkcd -log
  1967.  
  1968.  
  1969. *****************************************************************************
  1970. 3.6 AXnet mail
  1971.  
  1972. When a user sends mail, it is usually stored in the AXsh:usr/spool/mail
  1973. directory (this can be changed by modifying /etc/rc) with the same name as
  1974. the user's login name.  If the message is going to a remote system, it is
  1975. stored in the same directory as all the other mail, and its name is the same
  1976. as the remote system's (login) name.  When a new mail message arrives, the
  1977. datestamp of the system mailbox changes and AXsh will inform the user about
  1978. new mail by saying:
  1979.  
  1980.     New mail has arrived!
  1981.  
  1982. You can also use UUCP sendmail, just configure the appropriate entries in the
  1983. /etc/rc.mail-file. In that case, also set %mail: in /etc/rc to UUMAIL: or
  1984. assign UUMAIL: to the AXsh mail system directory. If you mix AXsh mail and
  1985. UUCP mail, you MUST define an external sendmail.
  1986.  
  1987.  
  1988. *****************************************************************************
  1989. 3.7 AXnet news
  1990.  
  1991. User's newsgroup state information is stored in the home directory in the
  1992. file .rnnewsrc and the readnews preferences in the file .rnprefs.  These
  1993. files are read in when the user starts rn.  Rn updates these files when user
  1994. quits back to shell.
  1995.  
  1996. Each AXsh system should have at least one local newsgroup as a news channel
  1997. for local users about new stuff in system etc.  In addition to this there is
  1998. usually several public newsgroups which are delivered through net to all
  1999. systems.  If there's a system delivering messages from Internet to a local
  2000. AXnet, daily newsfeed may contain THOUSANDS of messages.  Every day.  That's
  2001. why it's reasonable to delete old messages by using rn tidy.
  2002.  
  2003. The file /usr/spool/news/NewsGroups has a number after each newsgroup name
  2004. and this defines how many days a specific message is kept in the system.  All
  2005. news articles that are older than that are deleted when you run rn tidy.  You
  2006. can also tell to rn what is the maximum number of articles in one group.
  2007.  
  2008.     rn tidy -m<messages>
  2009.  
  2010. For example
  2011.  
  2012.     rn tidy -m300
  2013.  
  2014. would delete all the messages older than the days defined in Newsgroups-file
  2015. and if there's more than 300 messages in a group, it will delete all but the
  2016. last 300.  This can be automatized by using cron.
  2017.  
  2018. If you use CNews or plain UUCP, you should use its own expire-mechanism
  2019. instead of rn tidy.  The new rn will find out if the .lowest files are not
  2020. upto date and will do a quick 'binary search' scan to find the article with
  2021. the lowest number.  Because of this rn startup may take slightly longer,
  2022. especially if the .lowest files are not upto date.
  2023.  
  2024. You can also send binary files between systems with:
  2025.  
  2026.     rn net <host> send <filename>
  2027.  
  2028. However, this is only possible in an AXsh net. However, you still may use
  2029. other tranport mechanisms than the "net" program. You should also notice that
  2030. the host must exist and be directly reachable. There will be NO error
  2031. messages if you make a mistake, the file will be appended to a file in
  2032. the news directory and it will never be sent anywhere. So, be careful when
  2033. you send files and check the news directory periodically.
  2034.  
  2035. There also is an NNTP news importer available, if you have an account in
  2036. a suitable U*ix system.
  2037.  
  2038.  
  2039. *****************************************************************************
  2040. 4.0 Registering stuff
  2041.  
  2042. This section is very important.  When you receive the AXsh package and have
  2043. installed it correctly and DO want new versions of AXsh, PLEASE tell us that
  2044. you exist. Send some mail to us. It guarantees that you are on our lists.
  2045. You also should send us the small registering fee/donation (US$ 30, 150 FIM,
  2046. in any currency), because we will then send the sources and some additional
  2047. programs and manual pages.
  2048.  
  2049. Please, DON'T send cheques, because it costs me about 60 FIM to cash them.
  2050. And 60 FIM is 40% of the original 150 FIM cheque ! It sure costs less to
  2051. exchange currency and I don't even have to do that, if you send FIM or US$.
  2052. If your bank does direct international money transfers for less, you can
  2053. also send the money directly to my account:
  2054.  
  2055. Pasi Ojala
  2056. Finland - TSOP Kyröskoski 506326-559792
  2057.  
  2058. And remember:
  2059. Even the AXshDemo package is shareware and should only be used for evaluation.
  2060. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2061.  
  2062. The bug report form is needed, if you find a bug or an unpleasant feature
  2063. from AXsh.  AXsh is not bug free, but it's quite well behaving program at the
  2064. moment.  You can also send reports and suggestions without the form. In fact
  2065. the form is only needed if you use conventional snail-mail. We prefer E-mail,
  2066. but conventional mail can also be used if you don't have Internet access
  2067. (or you don't know how to use Fidonet-Internet-gateway).
  2068.  
  2069. If you have developed an application for AXsh, let us know about it by
  2070. filling the Application report form and sending it to us.
  2071.  
  2072.  
  2073. You can send all the forms via Internet to 
  2074.  
  2075.     po87553@cs.tut.fi OR albert@cc.tut.fi
  2076.  
  2077. or use conventional mail:
  2078.  
  2079.     Pasi Ojala
  2080.     Telkontie 50
  2081.     39230 Osara
  2082.     FINLAND
  2083.  
  2084.  
  2085. *****************************************************************************
  2086. 4.1 Registering form
  2087.  
  2088. Name of the system administrator:
  2089.  
  2090. _____________________________________________________________________
  2091.  
  2092. Name of the system:
  2093.  
  2094. _____________________________________________________________________
  2095.  
  2096. System's phone number, highest baud rate and working hours:
  2097.  
  2098. _____________________________________________________________________
  2099.  
  2100. Network address:
  2101.  
  2102. _____________________________________________________________________
  2103.  
  2104. Administrator's full address:
  2105.  
  2106.  
  2107.  
  2108. _____________________________________________________________________
  2109.  
  2110. Administrator's phone number:
  2111.  
  2112.  
  2113. _____________________________________________________________________
  2114.  
  2115. Current version of AXsh:
  2116.  
  2117.  
  2118. _____________________________________________________________________
  2119.  
  2120.  
  2121. *****************************************************************************
  2122. 4.2 Bug report form
  2123.  
  2124. Name of the system administrator:
  2125.  
  2126. _____________________________________________________________________
  2127.  
  2128. System's phone number, highest baud rate and working hours:
  2129.  
  2130. _____________________________________________________________________
  2131.  
  2132. Network address:
  2133.  
  2134. _____________________________________________________________________
  2135.  
  2136. Administrator's full address:
  2137.  
  2138.  
  2139. _____________________________________________________________________
  2140.  
  2141. Administrator's phone number:
  2142.  
  2143. _____________________________________________________________________
  2144.  
  2145. Current version of AXsh:
  2146.  
  2147. _____________________________________________________________________
  2148.  
  2149. Description of the bug/feature:
  2150.  
  2151. _____________________________________________________________________
  2152.  
  2153.  
  2154. _____________________________________________________________________
  2155.  
  2156.  
  2157. _____________________________________________________________________
  2158.  
  2159.  
  2160. _____________________________________________________________________
  2161.  
  2162.  
  2163. _____________________________________________________________________
  2164.  
  2165.  
  2166. _____________________________________________________________________
  2167.  
  2168.  
  2169. _____________________________________________________________________
  2170.  
  2171.  
  2172. *****************************************************************************
  2173. 4.3 New application report form
  2174.  
  2175. Name of the author:
  2176.  
  2177. _____________________________________________________________________
  2178.  
  2179. Author's full address:
  2180.  
  2181.  
  2182. _____________________________________________________________________
  2183.  
  2184. Author's phone number:
  2185.  
  2186. _____________________________________________________________________
  2187.  
  2188. Application name and current version:
  2189.  
  2190. _____________________________________________________________________
  2191.  
  2192. Description of the application:
  2193.  
  2194. _____________________________________________________________________
  2195.  
  2196.  
  2197. _____________________________________________________________________
  2198.  
  2199.  
  2200. _____________________________________________________________________
  2201.  
  2202.  
  2203. _____________________________________________________________________
  2204.  
  2205.  
  2206. _____________________________________________________________________
  2207.  
  2208.  
  2209. _____________________________________________________________________
  2210.  
  2211.  
  2212. _____________________________________________________________________
  2213.  
  2214.  
  2215. _____________________________________________________________________
  2216.  
  2217.  
  2218. _____________________________________________________________________
  2219.  
  2220.  
  2221. *****************************************************************************
  2222. 4.4 Author
  2223.  
  2224.     Pasi 'Albert' Ojala    po87553@cs.tut.fi OR albert@cc.tut.fi
  2225.  
  2226.  
  2227. The translators:
  2228.  
  2229. Cedric Beust         <Cedric.Beust@sophia.inria.fr>    French translation
  2230. Soeren Berg Hansen    <siera@imada.ou.dk>        Danish translation
  2231. Sebastian Delmont    <sdelmont@dino.conicit.ve>    Spanish translation
  2232. Morgan Ericsson        <morgan@krynn.augs.se>        Swedish translation
  2233.  
  2234.  
  2235. The idea originally by:
  2236.  
  2237. Juha 'Comm' Tuominen
  2238.  
  2239.  
  2240. *****************************************************************************
  2241. 4.5 Copyright notices
  2242.  
  2243. Unix is a registered trademark of AT&T
  2244.  
  2245. Amiga is a registered trademark of Commodore Business Machines, Inc.
  2246.  
  2247. AmigaOS is a registered trademark of Commodore Business Machines, Inc.
  2248.  
  2249.  
  2250. AXsh and Digital Design are not registered trademarks, but using them without
  2251. permission is bad for your teeth.
  2252.  
  2253.